package com.gimi.cloud.jimi.manage.consumer.service.app;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @auther loongs
 * @date 2018/1/16  15:52
 */
public interface ColumnProdService {

    /**
     * 栏目下的商品管列表(分页)
     * @return 菜单列表
     */
    Response getColumnProdList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 添加栏目下的商品
     * @return 菜单列表
     */
    Response addColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;
    /**
     * 批量添加栏目下的商品
     * @return 菜单列表
     */
    Response addBatchColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;
    /**
     * 转跳到添加栏目下的商品（查询不属于该栏目的商品）
     * @return 菜单列表
     */
    Response goToaddColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;
    /**
     * 转跳到编辑栏目下的商品
     * @return 菜单列表
     */
    Response goToEditColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;
    /**
     * 编辑栏目下的商品
     * @return 菜单列表
     */
    Response editColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 删除栏目下的商品
     * @return 菜单列表
     */
    Response delColumnProd(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 上传栏目下商品的图片
     * @return 菜单列表
     */
    Response upLoadColumnProdFile(HttpServletResponse response, HttpServletRequest request) throws Exception;
}
